/*******************************************************************************
* Copyright (c) 2010, 2017 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ClassName: MachiningRelation <br/>
 * Function: 加工关系明细 <br/>
 * date: 2019-01-24 13:52:06 <br/>
 *
 * @author 祁雪萍
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="machining_relations")
public class MachiningRelation extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 成品id 
    @Column(name="product_id")
	private Long productId = null;

	// 原料id 
    @Column(name="material_id")
	private Long materialId = null;

	// 消耗数量 
    @Column(name="count",scale=2)
	private Double count = null;

	@Tolerate
	public MachiningRelation() {
		
	}

	@Tolerate
	public MachiningRelation(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取成品id
	 */
	public Long getProductId() {
		return this.productId;
	}

    /**
     * 设置成品id
     */
	public MachiningRelation setProductId(Long productId) {
		this.productId = productId;
		return this;
	}

	/**
	 * 获取原料id
	 */
	public Long getMaterialId() {
		return this.materialId;
	}

    /**
     * 设置原料id
     */
	public MachiningRelation setMaterialId(Long materialId) {
		this.materialId = materialId;
		return this;
	}

	/**
	 * 获取消耗数量
	 */
	public Double getCount() {
		return this.count;
	}

    /**
     * 设置消耗数量
     */
	public MachiningRelation setCount(Double count) {
		this.count = count;
		return this;
	}




}
